<div class="modal-header">
    <span class="modal-title"><img src="{$userRs.avatar}" class="avatar mr-2" width="100%" onerror="this.src='{:config('template.skin')}/img/avatar.png'">{$userRs.username} [ {$userRs.nickname} ] {:lang('shopv_adjust')}</span>
    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
</div>
<div class="modal-body">
    <form name="form_edit" id="form_edit">
        <input type="hidden" name="lang" value="{$lang}">
        <input type="hidden" name="userid" value="{$userRs.id}">
        <input type="hidden" name="adminid" value="{:session('userid')}">
        <input type="hidden" name="addtime" value="{:date('Y-m-d H:i:s')}">
        <div class="w-100 mb-3 text-center">
            <span class="mr-4">{:lang('shopv_balance')}：&yen;<span class="text-danger ml-2 mr-2 font-weight-bold">{:str_replace('.00','',$userRs.balance)}</span>{:lang('shopv_dollar')}</span>
            <!-- {:lang('shopv_withdrawable')}：<span class="text-primary font-weight-bold">{$userRs.cash}</span> {:lang('shopv_dollar')}
            <i class="fa fa-database mr-2 ml-4"></i>{:lang('shopv_score')}：<span class="text-success font-weight-bold mr-2">{$userRs.score}</span> -->
        </div>
        <div class="mx-5 px-5 mb-2">
            <div class="w-100 mb-2 text-muted">{:lang('shopv_reduce_tips')}</div>
            <div class="input-group">
                <div class="input-group-prepend"><button type="button" class="btn btn-default">&nbsp;&nbsp;&nbsp;{:lang('shopv_balance')}&nbsp;&nbsp;</button></div>
                <input name="balance" id="balance" type="number" class="form-control" value="0" maxlength="10">
                <span class="input-group-append">
                    <span class="btn btn-default date-set">&nbsp;&nbsp;&nbsp;{:lang('shopv_dollar')}&nbsp;&nbsp;</span>
                </span>
            </div>
        </div>
        <!-- <div class="mx-5 px-5 mb-2">
            <div class="input-group">
                <div class="input-group-prepend"><button type="button" class="btn btn-default">&nbsp;&nbsp;&nbsp;{:lang('shopv_score')}&nbsp;&nbsp;</button></div>
                <input name="score" id="score" type="number" class="form-control" value="0" maxlength="10">
                <span class="input-group-append">
                    <span class="btn btn-default date-set">{:lang('shopv_score')}</span>
                </span>
            </div>
        </div>
        <div class="mx-5 px-5 mb-2">
            <div class="input-group">
                <div class="input-group-prepend"><button type="button" class="btn btn-default">{:lang('shopv_withdrawable')}</button></div>
                <input name="cash" id="cash" type="number" class="form-control" value="0" maxlength="10">
                <span class="input-group-append">
                    <span class="btn btn-default date-set">&nbsp;&nbsp;&nbsp;{:lang('shopv_dollar')}&nbsp;&nbsp;</span>
                </span>
            </div>
        </div> -->
        <div class="mx-5 px-5 mb-4">
            <div class="w-100">{:lang('v_note')}：</div>
            <div class="w-100">
                <textarea class="form-control" name="note" id="note"></textarea>
            </div>
        </div>
        <div class="row my-2">
            <div class="offset-md-4 col-md-8">
                <button type="button" class="do_ajax btn btn-success mr-2" onclick="javascript:do_ajax('#form_edit','.do_ajax','{:url('/user/capital',['lang'=>$lang])}','{:url('/user/index',['lang'=>$lang])}');"><i class="fa fa-check-circle mr-2"></i>{:lang('v_save')}</button>
                <button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times-circle mr-2"></i>{:lang('v_close')}</button>
            </div>
        </div>
    </form>
</div>